﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SmartSpace.Cwt;

namespace WebApp.Templates.Blue
{
    public partial class Blue : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ICwtService service = Global.Get<ICwtService>();
                SmartSpace.Cwt.Company company = service.GetCompany();
                if (company != null)
                {
                    this._ctlTxtCompanyName.Text = company.Name;
                    this._ctlTxtCompanySubName.Text = company.SubName;

                    this._ctlCopyright.InnerText = string.Format("版权所有:{0}", company.Name);
                    this._ctlICPCode.InnerText = company.ICPCode;
                }
            }
        }
    }
}